﻿using System;
using System.Text;
using System.Net.Mail;

namespace InfraWEB.Comum.Email
{
	public class Email
	{
		#region Attributes
		private MailMessage _email;
		#endregion

		#region Properties
		public MailMessage Mail
		{
			get { return _email; }
			set { _email = value; }
		}
		#endregion

		#region Constructors
		/// <summary>
		/// Empty Email´s constructor
		/// </summary>
		public Email()
		{
		}

		/// <summary>
		/// Email´s constructor
		/// </summary>
		/// <param name="destinatario">Contains the address of the sender of the e-mail message</param>
		/// <param name="remetente">Contains the address of the recipient of the e-mail message</param>
		/// <param name="titulo">Contains the subject text</param>
		/// <param name="mensagem">Contains the message body</param>
		public Email(string destinatario, string remetente, string titulo, string mensagem)
		{
			_email = new MailMessage(remetente, destinatario, titulo, mensagem);
		}
		#endregion
	}
}